Download the initrd from xm-test.xensource.com, unless otherwise specified.
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Tue, 28 Mar 2006 10:47:20 +0000 (11:47 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Tue, 28 Mar 2006 10:47:20 +0000 (11:47 +0100)
Don't download it again if it's already present.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/xm-test/ramdisk/Makefile.am

index 2912f7579bb69eb84bc62d25cd18862d8d239bb9..1ac4752ce6ce07281bd7ec5a43131130e439e323 100644 (file)
@@ -1,3 +1,4 @@
+INITRD ?= http://xm-test.xensource.com/ramdisks
 
 EXTRA_DIST = skel configs patches
 
@@ -60,7 +61,7 @@ disk.img: existing
        fi
 
 existing:
-       @if test -n "$(INITRD)"; then \
+       @if [ -n "$(INITRD)" ] && [ ! -f $(XMTEST_VER_IMG) ] ; then \
                wget $(INITRD)/$(XMTEST_VER_IMG); \
        fi
        @if [ -f $(XMTEST_VER_IMG) ] ; then \